import http from './index.js'

export const register = (data) => {
    return http.post('/register',data)
}
export const login = (data) => {
    return http.post('/login',data)
}
export const getnew = () => {
    return http.get('/getnew')
}
export const getseckill = () => {
    return http.get('/getseckill')
}   
export const getindexgoods = () => {
    return http.get('/getindexgoods')
}
export const getcate = () => {
    return http.get('/getcate')
}
export const getgoods = (fid) => {
    return http.get('/getgoods', { params:{fid} })
}
export const cartlist = (uid) => {
    return http.get('/cartlist', { params:{uid} })
}
export const cartadd = (data) => {
    return http.post('/cartadd',data)
}